# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=parole
pkgver=4.16.0
pkgrel=0
case $pkgver in
	*.*.*.*) _branch=${pkgver%.*.*};;
	*.*.*) _branch=${pkgver%.*};;
esac
pkgdesc="Media player for the Xfce desktop"
url="https://docs.xfce.org/apps/parole/start"
arch="all"
license="GPL-2.0-or-later"
depends="gst-plugins-good"
depends_dev="libxfce4ui-dev libxfce4util-dev intltool gstreamer-dev bash
	gst-plugins-base-dev libsm-dev taglib-dev libnotify-dev dbus-glib-dev"
makedepends="$depends_dev linux-headers"
subpackages="$pkgname-dev $pkgname-lang"
source="https://archive.xfce.org/src/apps/parole/$_branch/parole-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-gstreamer=1.0
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fe4723ce3e2106935b4577647920d6759ade3311ef92d5633a309aeb930b81974dd8e5f65958a304a117e614341cba032a54d0c81bdd386d592c64ed2aa31124  parole-4.16.0.tar.bz2
"
